package csd.wyaiyr.com.model;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

@Table(name = "ai_advice")
public class AiAdvice implements Serializable {
//     主键

    @Id
    private String id;

//    AI入参

    @Column(name = "ai_param")
    private String aiParam;

//   AI建议

    @Column(name = "ai_advice")
    private String aiAdvice;

//     分析时间

    @Column(name = "advice_time")
    private Date adviceTime;

    private static final long serialVersionUID = 1L;


//      获取主键

    public String getId() {
        return id;
    }

//    设置主键

    public void setId(String id) {
        this.id = id;
    }

//    获取AI入参

    public String getAiParam() {
        return aiParam;
    }

//   设置AI入参

    public void setAiParam(String aiParam) {
        this.aiParam = aiParam;
    }

//   获取AI建议
    public String getAiAdvice() {
        return aiAdvice;
    }

//   设置AI建议

    public void setAiAdvice(String aiAdvice) {
        this.aiAdvice = aiAdvice;
    }

//    获取分析时间

    public Date getAdviceTime() {
        return adviceTime;
    }

//  设置分析时间
    public void setAdviceTime(Date adviceTime) {
        this.adviceTime = adviceTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AiAdvice other = (AiAdvice) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getAiParam() == null ? other.getAiParam() == null : this.getAiParam().equals(other.getAiParam()))
            && (this.getAiAdvice() == null ? other.getAiAdvice() == null : this.getAiAdvice().equals(other.getAiAdvice()))
            && (this.getAdviceTime() == null ? other.getAdviceTime() == null : this.getAdviceTime().equals(other.getAdviceTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getAiParam() == null) ? 0 : getAiParam().hashCode());
        result = prime * result + ((getAiAdvice() == null) ? 0 : getAiAdvice().hashCode());
        result = prime * result + ((getAdviceTime() == null) ? 0 : getAdviceTime().hashCode());
        return result;
    }
}